package project6;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        hero yalian=new hero("亚连",5000,1500);
        hero yase=new hero("亚瑟",6000,1000);
        yalian.attack(yase);
        yase.attack(yalian);
        System.out.println("亚连的剩余血量为："+yalian.getLife()+"\n亚瑟的剩余血量为："+yase.getLife());
    }
}
